import { watch } from 'vue'
import { useLoginStore } from '@/store/login'

const loginStore = useLoginStore()
export const watchLang = (...cbs) => {
  watch(
    () => loginStore.getLang,
    () => {
      cbs.forEach((cb) => cb(loginStore.getLang))
    },
    { deep: true }
  )
}
